package com.rpj.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ApiModel(value="RolesDto",description="多条件分页查询条件")
public class RolesDto {
	@ApiModelProperty(value="每页数据条数",name="limit")
	private int limit=5;//每页数据条数
	@ApiModelProperty(value="当前第几页",name="page")
	private int page=1;
	public int getLimit() {
		return limit;
	}
	public void setLimit(int limit) {
		this.limit = limit;
	}
	public int getPage() {
		return (page-1)*limit;
	}
	public void setPage(int page) {
		this.page = page;
	}
	public RolesDto(int limit, int page) {
		super();
		this.limit = limit;
		this.page = page;
	}
	public RolesDto() {
		super();
		// TODO Auto-generated constructor stub
	}
	@Override
	public String toString() {
		return "RolesDto [limit=" + limit + ", page=" + page + "]";
	}
	
}
